<template>
  <div class="box">
  	<p><span>温馨提示：</span>为防止重复付款，一人结算即可</p>
  	<div class="listbox">
  		<div class="list_header">
  			<i>已选菜品</i>
  			<i>价格</i>
  			<i>数量</i>  			
  		</div>
  		<ul class="list">
					<li v-for="cartfood in cartfoods">
						<img :src="cartfood.tpuri" />						
						<div class="foodbox">
							<h3 class="food_name">{{cartfood.cpmc}}</h3>
							<i class="food_price">￥{{cartfood.cpjg}}</i>
							<i class="old_price">原价：￥{{cartfood.cpjg}}</i>
						</div>
						<i class="price">{{cartfood.cpjg*cartfood.ydfs}}</i>
						<div class="btnbox">
							<!--<i class="iconfont icon-jian subtract" @click="subtract(cartfood)"></i>-->
							<i class="food_numder">{{cartfood.ydfs}}</i>
							<!--<i class="iconfont icon-jia add" @click="add(cartfood)"></i>-->
						</div>
										
					</li>
					
				</ul>
  	</div>
  	<div class="yhbox">
  		<div class="titlebox">
  			<div class="title"><h5>会员优惠</h5><i class="iconfont icon-dayuhao"></i><i>普通会员</i></div>
  			<div class="title"><h5>商家优惠劵</h5><i class="iconfont icon-dayuhao"></i><i>一张优惠劵可用</i></div>
  		</div>
  	</div>
  	<div class="bottom" >			
			<h4 class="total_price">共计￥{{totalprice}}</h4>
			<button class="go_jiesuan" @click="pay">结算</button>				
		</div>
  </div>
</template>

<style scoped src="../assets/css/jiesuan.css"></style>
<script src="../assets/js/jiesuan.js"></script>
